import {parse} from "toml"

export namespace Toml {
    export const get = async (url:string,init:RequestInit) => {
        try {
            const resp = await fetch(url,init);
            const text = await resp.text();
            return parse(text);
        } catch (error) {
            console.error(error)
        }
    }
}